package com.sunda.spmsoversea.enums;

public enum OverseaDnEnum {
    /**
     0待到货;
     1入库中/审批不通过;
     2入库完成/待审批;
     3审批通过/SPMS按实收入库存;
     4按应收提交SAP成功;
     5按应收提交SAP失败;
     6收货少收提交SAP失败;
     7收货少收提交SAP成功; —— 中间状态
     8提交SAP完成; —— 中间状态
     9收货完成/完结状态;
     10关闭/废单;
     */
    DN_WAITING("0", "待到货", "Waiting."),
    DN_RECEIVING("1", "收货中", "Receiving."),
    DN_REJECT("1", "审批不通过", "Reject."),
    DN_WHS_IN_DONE("2", "入库完成", "Whs In Completed."),
    DN_APPROVAL("2", "待审批", "Pending Approval."),
    DN_APPROVED("3", "审批通过", "Approved."),
    DN_SUBMIT_SAP("4", "按应收提交SAP成功", "Submit SAP Success."),
    DN_SUBMIT_SAP_ERROR("5", "按应收提交SAP失败", "Submit SAP Error."),
    DN_SUBMIT_SAP_ERROR1("5", "按实收提交SAP失败", "Submit SAP Error."),
    DN_UNDERCHARGED_TO_SAP("7", "收货少收提交SAP成功", "Undercharge Submit to SAP Successfully."),
    DN_UNDERCHARGED_TO_SAP_ERROR("6", "收货少收提交SAP失败", "Failed to submit SAP for Undercharge."),
    DN_SUBMIT_SAP_DONE("8", "提交SAP完成", "Submit SAP Success."),
    DN_COMPLETED("9", "收货完成", "Delivery Note Completed."),
    DN_DELETE("10", "关闭", "Delivery Note Deleted."),

    DN_CANCEL_TO_WAITING("0", "撤销到待到货", "Cancel To Waiting."),
    DN_CANCEL_TO_RECEIVING("1", "撤销到收货中", "Cancel To Receiving."),
    DN_CANCEL_TO_APPROVED("3", "撤销入库凭证到审批通过", "Cancel To Approved."),
    DN_CANCEL_TO_SUBMIT_SAP("4", "撤销少收凭证到收货提交SAP", "Cancel To Whs In Submit SAP."),
    DN_UPDATE("99", "从SAP更新交货单", "SAP Update."),
    DN_CANCEL_ERROR("98", "撤销失败", "Cancel Error.");

    private String code;
    private String descZh;
    private String descEn;

    OverseaDnEnum(String code, String descZh, String descEn) {
        this.code = code;
        this.descZh = descZh;
        this.descEn = descEn;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDescZh() {
        return descZh;
    }

    public void setDescZh(String descZh) {
        this.descZh = descZh;
    }

    public String getDescEn() {
        return descEn;
    }

    public void setDescEn(String descEn) {
        this.descEn = descEn;
    }
}
